package org.example.backend.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

@Data
public class TicketDTO {
    private Long id;
    
    @NotBlank(message = "门票名称不能为空")
    private String name;
    
    @NotNull(message = "门票价格不能为空")
    @Positive(message = "门票价格必须大于0")
    private BigDecimal price;
    
    private String description;
    private Boolean isActive;
} 